package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCustomerExcelMapper;
import com.ruoyi.system.domain.SysCustomerExcel;
import com.ruoyi.system.service.ISysCustomerExcelService;

/**
 * 客户线索ExcelService业务层处理
 *
 * @author ruoyi
 * @date 2025-06-15
 */
@Service
public class SysCustomerExcelServiceImpl implements ISysCustomerExcelService
{
    @Autowired
    private SysCustomerExcelMapper sysCustomerExcelMapper;

    /**
     * 查询客户线索Excel
     *
     * @param grade 客户线索Excel主键
     * @return 客户线索Excel
     */
    @Override
    public SysCustomerExcel selectSysCustomerExcelByGrade(String grade)
    {
        return sysCustomerExcelMapper.selectSysCustomerExcelByGrade(grade);
    }

    /**
     * 查询客户线索Excel列表
     *
     * @param sysCustomerExcel 客户线索Excel
     * @return 客户线索Excel
     */
    @Override
    public List<SysCustomerExcel> selectSysCustomerExcelList(SysCustomerExcel sysCustomerExcel)
    {
        return sysCustomerExcelMapper.selectSysCustomerExcelList(sysCustomerExcel);
    }

    /**
     * 新增客户线索Excel
     *
     * @param sysCustomerExcel 客户线索Excel
     * @return 结果
     */
    @Override
    public int insertSysCustomerExcel(SysCustomerExcel sysCustomerExcel)
    {
        return sysCustomerExcelMapper.insertSysCustomerExcel(sysCustomerExcel);
    }

    /**
     * 修改客户线索Excel
     *
     * @param sysCustomerExcel 客户线索Excel
     * @return 结果
     */
    @Override
    public int updateSysCustomerExcel(SysCustomerExcel sysCustomerExcel)
    {
        return sysCustomerExcelMapper.updateSysCustomerExcel(sysCustomerExcel);
    }

    /**
     * 批量删除客户线索Excel
     *
     * @param grades 需要删除的客户线索Excel主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomerExcelByGrades(String[] grades)
    {
        return sysCustomerExcelMapper.deleteSysCustomerExcelByGrades(grades);
    }

    /**
     * 删除客户线索Excel信息
     *
     * @param grade 客户线索Excel主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomerExcelByGrade(String grade)
    {
        return sysCustomerExcelMapper.deleteSysCustomerExcelByGrade(grade);
    }
}